package com.walleipt.ipt_tools.utils;

import java.util.Calendar;

import org.apache.commons.lang3.RandomUtils;

public class UUIDGenerator {
	public UUIDGenerator() {   
    }   
  
    public static String getUUID() {
    	Calendar cal = Calendar.getInstance() ;
    	long l = cal.getTime().getTime() ; 
    	l = l+RandomUtils.nextLong(1000000000000L, 9000000000000L) ;
    	return (l+"").substring(1, 13);
    }
    
    public static void main(String[] args) {
    	String uuid=getUUID() ;
    	System.err.println( uuid +";"+ uuid.length() );
	}
}
